import HJMicro, * as func from "@haiking/micro-common";
import ElementUI from "element-ui";
import Vue from "vue";
import setting from "@/settings";
(function () {
  console.error("运行");
  const baseUrl =
    process.env.NODE_ENV === "development"
      ? "/api"
      : process.env.VUE_APP_BASE_API;
  Vue.use(HJMicro, {
    baseUrl,
    Message: ElementUI.Message,
    env: process.env.NODE_ENV,
    VUE_APP_MINIO: process.env.VUE_APP_MINIO,
    setting,
  });
  Vue.use(ElementUI);
  window.HJMicro = func;
  window.HJMicroInnstall = HJMicro;
})();
export {
  $utils,
  $validator,
  $validate,
  $moment,
  Cookies,
  registerModule,
  theme,
  themeMixin,
  MsgMixin,
} from "@haiking/micro-common";
